package dao

import (
	"chat/Intends/model"
	"chat/golden"
)

type ChatLoginDao struct {
}

func ChatLogin() *ChatLoginDao {
	return &ChatLoginDao{}
}

func Login(ch ChatLoginDao) (db model.User) {
	DB := golden.DB
	DB = DB.Where("username = ? and password = ?", db.Username, db.Password).Find(&db)
	return

}
